
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script src="${pageContext.request.contextPath}/JQuery_w/external/jquery/jquery.js"></script>
        <script src="${pageContext.request.contextPath}/JQuery_w/jquery-ui.min.js"></script>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/JQuery_w/jquery-ui.min.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/JQuery_w/jquery-ui.structure.min.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/JQuery_w/jquery-ui.theme.min.css"/>
        <script src="${pageContext.request.contextPath}/scripts/calendario.js"></script>
        <script>
            $(function () {
                buscar();
                $("input[type='text']").keyup(buscar);
                $("input[type='text']").change(buscar);
            });
            function buscar() {
                $.post("bandejaEntradaGenDocPersonal.htm", {dniDes: $("#dni").val(), asu: $("input[name='asu']").val(),
                    fec: $("input[name='fec']").val(), uniPad: $("input[name='uniPad']").val(),
                    uniDep: $("input[name='uniDep']").val(),
                    priApe: $("input[name='papeUsu']").val(),
                    segApe: $("input[name='sapeUsu']").val(),
                    preNom: $("input[name='nomUsu']").val()}, function (data) {
                    $("#bandejaEntrada tbody").html(data);
                });
            }
        </script>
    </head>
    <body>
        <input type="hidden" value="${dni}" id="dni"/>
        <div>
            <fieldset>
                <legend>Documento En Bandeja De Entrada</legend>
                <table>
                    <tr>
                        <td><input type="text" placeholder="buscar x Asunto" name="asu" /></td>
                        <td><input type="text" placeholder="X fecha" name="fec" class="tx_fecha" /></td>
                        <td><input type="text" placeholder="X Unidad Padre" name="uniPad"/></td>
                        <td><input type="text" placeholder="X Unidad Dep." name="uniDep" /></td>
                    </tr>
                    <tr>
                        <td><input type="text" placeholder="Nombre Usuario Remit.." name="nomUsu" /></td>
                        <td><input type="text" placeholder="Prim. Ape. Usuario Remit.." name="papeUsu" /></td>
                        <td><input type="text" placeholder="Seg. Ape. Usuario Remit.." name="sapeUsu" /></td>
                    </tr>
                </table>
                <fieldset>
                    <table id="bandejaEntrada">
                        <thead>
                            <tr>
                                <th>Enviado Por</th>
                                <th>Tipo Doc.</th>
                                <th>Num Doc</th>
                                <th>Nombre Doc</th>
                                <th>Asunto</th>
                                <th>Fecha</th>
                                <th>Uni. Padre</th>
                                <th>Uni. Dep.</th>
                                <th>Año</th>
                                <th>Estado Doc.</th>
                                <th>Ruta Doc.</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </fieldset>
            </fieldset>
        </div>
    </body>
</html>
